package com.fshuqing.learing.spring.schedule;

import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@EnableDubbo
@DubboComponentScan(basePackages = "com.fshuqing.learing.spring.schedule")
public class ScheduledApp {
 
    private static final Logger logger = LoggerFactory.getLogger(ScheduledApp.class);
 
    public static void main(String[] args) {
 
        SpringApplication.run(ScheduledApp.class, args);
        logger.info("start");                       
    }  
}